﻿/*
A+B=C 
Time Limit:1000MS  Memory Limit:32768K


Description:
Input c,Output a and b in that rules: 1)a + b = c,2) b>=a && b-a is minimum.

Input:
Each line is a signed 32bit integer c. 
Output:
Output just one pair of signed 32bit integers a and b. 
Sample Input:
17
10
Sample Output:
8 9
5 5
*/
#include <iostream>
using namespace std;
int main()
{
	for (int c; cin>>c;)
	{
		int a=c/2;
		if(c>0)
			cout<<a<<" "<<(c-a)<<endl;
		else
			cout<<(c-a)<<" "<<a<<endl;

	}
	return 0;
}